import QtQuick 1.0
// Main Clock gadget
Item {
    id: clock
    width: 180
    height: 180


    property int hours:   0
    property int minutes: 0
    property int seconds: 0
    property string day: "00"
    property string ampm: "am"
    Item {
        id: clock_img
        Image {
            id: clock_front


            source: "clock/bg.png"
            Text {
                id: textAMPM
                x: 121
                y: 79
                width: 25
                height: 19
                color: "#ffffff"
                text: ampm
                font.family: "Georgia"
                font.bold: true
                font.pixelSize: 15
            }

            Text {
                id: textDay
                x: 37
                y: 80
                width: 25
                height: 19
                color: "#ffffff"
                text: day
                font.family: "Georgia"
                font.bold: true
                font.pixelSize: 16
            }

            Image {
                id: hours
                source: "clock/hour.png"
                smooth: true
                rotation: clock.hours * 30
            }

            Image {
                id: minutes
                source: "clock/minute.png"
                smooth: true
                rotation: clock.minutes * 6
            }

            Image {
                id: seconds

                visible: true
                source: "clock/second.png"
                smooth: true
                rotation: clock.seconds * 6

            }
        }
    }
}
// Michal
